package one.stand.request.essay;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import one.stand.request.BaseRequest;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author luoyang
 * @date 2020/5/11 18:07
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value="MyTaskDetailQuery对象", description="获客文章任务详情")
public class MyTaskDetailQuery extends BaseRequest implements Serializable {

    @ApiModelProperty(value = "任务id",required = true)
    @NotNull(message = "任务不能为空")
    private Long taskCustomerId;

    @ApiModelProperty(value = "用户id",required = true)
    @NotNull(message = "用户不能为空")
    private Long userId;

    @ApiModelProperty(value = "查询类型 1我收到的 2我发布的",required = true)
    @NotNull(message = "查询条件错误")
    private Integer type;

    //文章id 前端不需要传入,用于查询我的任务
    private Long dynamicId;

}
